package phoenix.core.base.extensions;

import phoenix.core.PhoenixManager;
import phoenix.core.helpers.PageBackendHelper;
import phoenix.core.helpers.PageMailHelper;
import phoenix.core.helpers.PageWebHelper;
import phoenix.core.helpers.extensions.WebDriverHelperExt;

/**
 * The base class for test classes.
 */
public class TestBaseWebExt extends TestBaseExt
{
	/**
	 * Initializes TestBaseMobExt
	 * @param p_manager PhoenixManager instance
	 */
	public TestBaseWebExt(PhoenixManager p_manager)
	{
		super(p_manager);
	}

	/**
	 * Provides access to PageWebHelper
	 * @return PageWebHelper instance
	 */
	protected PageWebHelper page()
	{
		return manager.web();
	}

	/**
	 * Provides access to PageWebHelper
	 * @return PageWebHelper instance
	 */
	protected PageMailHelper mail()
	{
		return manager.mails();
	}

	/**
	 * Provides access to PageBackendHelper
	 * @return PageBackendHelper instance
	 */
	protected PageBackendHelper backend()
	{
		return manager.backend();
	}

	/**
	 * Link method to WebDriverHelperExt
	 * @return WebDriverHelperExt instance
	 */
	public WebDriverHelperExt wd()
	{
		return manager.wd();
	}

}
